FrameA frame is a required property for each view, which represents the 当前视图 location and size, without setting him, 当前视图 is not visible.Position requires a reference to determine, in mathematics we use a coordinate system to determine the location
Foreword: In the development of iOS often encounter two words frame and bounds, this article mainly elaborated frame and bound difference, especially bound very around, difficult to understand.First, take a look at the accepted information: first
---restore content starts---Make BY-LJWPreface: The Beginner's knowledge of bounds is the origin of coordinates in the upper left corner of his own, and X/y is generally 0,0 .But after a deep understanding of bounds, we should re-recognize it.Here
Reference: http://blog.csdn.net/hherima/article/details/39501857In the UI development of iOS, it is often necessary to locate the view. The more common concept is frame and bound, through the view of the two properties, you can arbitrarily "fiddling"
I. Handwriting controls 1. step 1: Create a widget object using the corresponding spatial class (2) set various properties of the widget (3) Add the widget to the view (4) for buttons and other controls, you also need to consider the click events of
iOS development of children's shoes are almost always used UIView, then his bounds and frame two properties will not be unfamiliar, then these two what is the difference between the material?See the following code first you must understand something:
In iOS development and development process often use the interface elements of the frame, bounds represents the size and position of the properties and center, position, Anchorposition, and so on a purely positional properties. What exactly do these
In-depth relationships between frame, bounds, center, and transform coordinates in IOS development
If you have any questions, add qq chat group: 390438081
My QQ: 604886384 (indicating your intention)
: Niuting823
1.1 frame attributes
A. What is
Frame,bounds,center,position,anchorpoint SummaryThe position property of a layer is a Cgpoint value that specifies the position of the layer as its parent layer, based on the parent layer's coordinate system.The bounds property of a layer is a
1. FrameEach view has a frame property, which is a cgrect structure that describes the position of the rectangle where the view resides in its parent view .(The default origin of the screen coordinate system is in the upper-left corner, the x-axis
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.